myapp.models.Location = Ext.regModel("myapp.models.Location", {
    fields: [
             {name: 'latitude',  type: 'string'},
             {name: 'longitude',   type: 'string'}
     ]//,
     // TODO: not sure best way to track user location so can find what's near me
/*     getLocation: function (){
		var geo = new Ext.util.GeoLocation({
		    autoUpdate: false,
		    listeners: {
		        locationupdate: function (geo) {
		            alert('New latitude: ' + geo.latitude);
		        },
		        locationerror: function (   geo,
		                                    bTimeout, 
		                                    bPermissionDenied, 
		                                    bLocationUnavailable, 
		                                    message) {
		            if(bTimeout){
		                alert('Timeout occurred.');
		            }
		            else{
		                alert('Error occurred.');
		            }
		        }
		    }
		});
     }*/
});

myapp.userLocation = Ext.ModelMgr.create({},'myapp.models.Location');
